package com.vsd.service;


import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import com.vsd.domain.City;
import com.zy.sys.proto.MOCommon.MCityList;



public interface CityService {
	MCityList.Builder selectByLocation(Integer location,String parent);
	
	City findByNameAndState(String name);

	Collection<City> findByLevel(Integer level,String parentCode);
	
	City findByCode(String code);
	
	Page<City> findAll(String areaCode,Pageable p);
	
	Collection<City> findByParent(String code,Sort sort);
	
	City findOne(String id);
	
	void save(City c);
	
	int updateByPrimaryKeySelective(City c);

	City findDefault();
	
	
}
